/*
 * @Author: cola(sunshiwen)
 * @Date: 2022-04-22 09:57:27
 * @LastEditTime: 2022-10-20 15:39:10
 * @LastEditors: liuzhou
 * @Description: 分支管理参数 schema
 * @FilePath: /maycur-koa/schema/static_files_manage_schema.js
 */
'use strict';

const Joi = require('@hapi/joi');

const addStaticFiles = {
    body: Joi.object({
        directory: Joi.string().required(),
        remark: Joi.string().empty("").default(""),
        name: Joi.string().empty("").default(""),
        iconfontLink: Joi.string().empty("").default(""),
    }),
}
const updateStaticFiles = {
    body: Joi.object({
        remark: Joi.string().empty("").default(""),
        name: Joi.string().empty("").default("")
    }),
}

const deleteStaticFile = {
    router: Joi.object({
        id: Joi.string().required(),
    }),
}

module.exports = {
    addStaticFiles: addStaticFiles,
    updateStaticFiles: updateStaticFiles,
    deleteStaticFile: deleteStaticFile,
}